package com.example.project.config;

import com.example.project.exception.GlobalExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import java.util.List;
import org.springframework.web.servlet.HandlerExceptionResolver;
/**
 * Web配置类
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {

    @Bean
    public HandlerExceptionResolver globalExceptionHandler() {
        return new GlobalExceptionHandler();
    }
}